#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Zhangcl

import requests

r1 = requests.get(url="http://dig.chouti.com/")
r1_cookie = r1.cookies.get_dict()

post_dict = {
    "phone": '8615882060129',
    "password": '222000aaa',
    "oneMonth": 1
}

r2 = requests.post(
    url="http://dig.chouti.com/login",
    data=post_dict,
    cookies=r1_cookie
)

response = requests.post(
    url="http://dig.chouti.com/link/vote?linksId=15472856",
    cookies={'gpsd': r1_cookie.get('gpsd')}
)

print(response.text)
